package com.gem.service;

import com.gem.entity.Appointment;

import java.util.Date;
import java.util.List;
//预约
public interface AppointmentService {
    //根据apid查询
    Appointment selectByApid(Integer apid);
    //根据uid查询
    List<Appointment> selectByUid(Integer uid);
    //根据coid查询
    List<Appointment> selectByCoid(Integer coid);
    //根据did查询
    List<Appointment> selectByDid(Integer did);
    //查询全部
    List<Appointment> selectAll();
    //根据时间段查询
    List<Appointment> selectByAptime(Date aptime);
    //添加
    boolean insert(Appointment appointment);
    //根据uid和did修改时间
    boolean updateAptimeByUidAndDid(int uid, int did, Date aptime);
    //根据uid和did修改状态
    boolean updateApstatusByUidAndDid(int uid,int did,String apstatus);
    //根据apid删除
    boolean deleteById(Integer apid);
}
